<div class="gg_left">
    <div class="gg_left_two">
    <h2><?php echo $this->_var['store_name']; ?></h2>
    	<div class="r_menut_revi clearfix">
            <ul>
                <li>
                    <div class="g_x">
                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <td>
                                    <input type="button"  style="background:url(/meishi/themes/store/default/styles/default/images/ico_x.gif) no-repeat; width:16px; height:16px; border:none;" />
                                    <input type="button" style="background:url(/meishi/themes/store/default/styles/default/images/ico_x.gif) no-repeat; width:16px; height:16px; border:none;" />
                                    <input type="button" style="background:url(/meishi/themes/store/default/styles/default/images/ico_x.gif) no-repeat; width:16px; height:16px; border:none;" />
                                    <input type="button" style="background:url(/meishi/themes/store/default/styles/default/images/ico_x.gif) no-repeat; width:16px; height:16px; border:none;" />
                                </td>
                                <td>&nbsp;&nbsp;&nbsp;&nbsp;<span>11</span>条点评&nbsp;&nbsp;&nbsp;</td>
                                <td>| &nbsp;&nbsp;单价：<span>28</span>元</td>
                            </tr>
                            <tr></tr>
                            <tr></tr>
                            <tr></tr>
                        </table>
                    </div>
                </li>
                <li><span class="name_li">口味：</span>一般&nbsp;&nbsp;&nbsp;&nbsp;<span class="name_li">坏境：</span>一般&nbsp;&nbsp;&nbsp;&nbsp;<span class="name_li">服务：</span>一般</li>
                <li><span class="name_li">商户地址：</span>文一路555号-999号</li>
                <li><span class="name_li">商户电话：</span>0571-123456</li>
                <li><span class="name_li">商户标签：</span>中式快餐</li>
                <li><span class="name_li">营业时间：</span>8：00---24：00</li>
                <li><span class="name_li">附近公交：k70路 70路 k186路 186路 k43路 43路 815路 K186路 K37路 X1路 </span></li>
                <li class="sub2"><a href="#"><img src="/meishi/themes/store/default/styles/default/images/sub2.jpg" /></a><a href="#">免费下载手机版&nbsp;&nbsp;&nbsp;|</a><a href="#">纠错/举报</a></li>
            </ul>
        </div>
    </div>
    <div class="gg_left_three">
    	<div class="gj_map">
            <iframe src="sj_map.html" class="g_map" frameborder="no" width="260px" height="250px" border="0" marginwidth="0" marginheight="0" ></iframe>
        </div>
    </div>
    <div class="gg_left_one" id="li_bg">
        <ul id="li_bg_1">
         <?php if ($this->_var['show_chaining']): ?>
             <?php $_from = $this->_var['store_all']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'lstore');if (count($_from)):
    foreach ($_from AS $this->_var['lstore']):
?>
             <li class="<?php if ($this->_var['lstore']['cate_id'] == $this->_var['gcategory_id']): ?>cur<?php endif; ?>">
             <a href="#guojia" class="<?php if ($this->_var['lstore']['cate_id'] == $this->_var['gcategory_id']): ?>cur<?php endif; ?>">
             <?php echo htmlspecialchars($this->_var['lstore']['cate_name']); ?></a>
             </li>
            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
          <?php else: ?>
             <?php $_from = $this->_var['store_all']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'lstore');if (count($_from)):
    foreach ($_from AS $this->_var['lstore']):
?>
             <li class="<?php if ($this->_var['lstore']['cate_id'] == $this->_var['cate_id']): ?>cur<?php endif; ?>">
             <a href="<?php echo url('app=store&id=' . $this->_var['store_id']. '&act=search&cate_id=' . $this->_var['lstore']['cate_id']. ''); ?>" class="<?php if ($this->_var['lstore']['cate_id'] == $this->_var['cate_id']): ?>cur<?php endif; ?>">
             <?php echo htmlspecialchars($this->_var['lstore']['cate_name']); ?></a>
             </li>
            <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
         <?php endif; ?>
        </ul>
    </div>
</div>

<script type="text/javascript">
$(document).ready(function(){
	$(".gg_left_one ul li").click(function(){
		$(".gg_left_one ul li").removeClass("cur");
		$(this).addClass("cur");
		var i=$(".gg_left_one ul li").index(this);
		$(".right_g_two .tit li").removeClass("cur");
		$(".right_g_two .tit li").eq(i).addClass("cur");
		$(".right_g_two .wrap_bg ul").hide();
		$(".right_g_two .wrap_bg ul").eq(i).show();

	});

	//侧栏随动
	var rollStart = $('.gg_left_one'), //滚动到此区块的时候开始随动
		rollOut = $('.cookie-list'); //隐藏rollStart之后的区块

	rollStart.before('<div class="da_rollbox"></div>');

	var offset = rollStart.offset(),objWindow = $(window),rollBox = rollStart.prev(),
		rollSet = $('.search,.weibo,.group'); //添加rollStart之前的随动区块

	objWindow.scroll(function() {
		if (objWindow.scrollTop() > offset.top){
			if(rollBox.html(null)){
				rollSet.clone().prependTo('.da_rollbox');
			}
			rollOut.fadeOut();
			rollBox.show().stop().animate({marginTop: objWindow.scrollTop() - offset.top + 5},400);
		} else {
			rollOut.fadeIn();
			rollBox.hide().stop().animate({marginTop:0},400);
		}
	});
});
</script>
